home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1997 May / macformat-050.iso / Shareware Plus / Developers / Find_icon folder / Headers / MetaSelector.h < prev   
Encoding:
C/C++ Source or Header  |  1997-01-25  |  1.9 KB  |  64 lines  |  [TEXT/CWIE]

  1. /*    ---------------------------------------------------------------------------------------------
  2.     Find_icon, code for constructing icon suites for files and folders
  3.     
  4.     by James W. Walker
  5.     preferred e-mail: <mailto:jwwalker@kagi.com>
  6.     alternate e-mail: <mailto:jwwalker@aol.com>, <jim@nisus-soft.com>
  7.     web: <http://users.aol.com/jwwalker/>
  8.     
  9.     File: MetaSelector.h
  10.     
  11.     Copyright ©1997 by James W. Walker
  12.     
  13.     You may incorporate this sample code into your applications without
  14.     restriction, though the sample code has been provided "AS IS" and the
  15.     responsibility for its operation is 100% yours.
  16.     If you're going to re-distribute the source, please make it clear
  17.     that the code was descended from James W. Walker's code,
  18.     but that you've made changes.
  19.     ---------------------------------------------------------------------------------------------
  20. */
  21.  
  22. #ifndef    _H_MetaSelector_
  23. #define    _H_MetaSelector_
  24.  
  25. #ifndef __TYPES__
  26.     #include <Types.h>
  27. #endif
  28.  
  29. #ifndef __ICONS__
  30.     #include <Icons.h>
  31. #endif
  32.  
  33. enum {    // meta-selector values
  34.     kSelectorSmallThenLarge    = 0x0100FF00L,
  35.     kSelectorLargeThenSmall    = 0x010000FFL
  36. };
  37.  
  38. typedef IconSelectorValue MetaSelectorValue;
  39.  
  40. void    ExpandMetaSelector(
  41. /* --> */    MetaSelectorValue metaSelector,
  42. /* <-- */    IconSelectorValue* firstTry,
  43. /* <-- */    IconSelectorValue* secondTry
  44. );
  45. /*    ¶ In addition to the icon selector masks provided in <Icons.h>,
  46.     I have provided the two special masks above.  For instance
  47.     kSelectorSmallThenLarge means that the first try will be with
  48.     kSelectorAllSmallData, and the second with be with
  49.     kSelectorAllLargeData.  If the metaSelector is not one of the
  50.     two special values, then it is returned as firstTry, and 0
  51.     is returned as secondTry.
  52.  
  53.     metaSelector    input:    One of the two special selectors enumerated
  54.                             above, or a standard selector mask as
  55.                             defined in <Icons.h>.
  56.     firstTry        output: The first icon selector mask, as defined
  57.                             in <Icons.h>.
  58.     secondTry        output: The second icon selector mask.
  59. */
  60.  
  61.  
  62.  
  63. #endif // _H_MetaSelector_
  64.